package com.lh.createData.model;

import com.google.gson.Gson;


/**
 * @ClassName: ResultVO
 * @Description:
 * @Auther: 梁昊
 * @Date: 2016/2/22 14:16
 * @Version: 1.0
 */
public class ResultVO<T> {
    /**
     * 状态码.
     */
    private Integer state;

    /**
     * 消息提示.
     */
    private String message;

    /**
     * 数据.
     */
    private T content;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    @Override
    public String toString() {
        Gson gson = new Gson();
        return gson.toJson(this.content);
    }
}
